<?php

class Attach extends Controller {

	function Attach() {
		parent::Controller();
	}

	function comment($id) {
		if($this->Account->is_guest()) {
			redirect('', 'location');
		}
		$this->TaskComments->create($id, 
			$this->Account->account_id,
			$this->input->post('comment'));
		redirect('task/view/id/'.$id, 'location');
	}
}

?>
